Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge "Gemini" feature into the main branch #2360

Merged
merged 70 commits into from
Apr 17, 2024
Merged

Merge "Gemini" feature into the main branch #2360

merged 70 commits into from
Apr 17, 2024

Conversation

BeibinLi
Copy link
Collaborator

@BeibinLi BeibinLi commented Apr 11, 2024

Merging the gemini branch into the main branch, with future TODOs listed in #2387

Why are these changes needed?

Related issue number

Checks

BeibinLi and others added 30 commits December 13, 2023 22:16
i.e., it can take messages where "user" is not the last role.
autogen/oai/gemini.py Outdated Show resolved Hide resolved
Copy link
Contributor

@levscaut levscaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@BeibinLi
Copy link
Collaborator Author

@marklysze @joshkyh Thanks for the suggestions. I just updated the token count and cost calculation for the client call.

@sonichi sonichi added this pull request to the merge queue Apr 17, 2024
Merged via the queue into main with commit 0aaf30a Apr 17, 2024
75 of 88 checks passed
@sonichi sonichi deleted the gemini branch April 17, 2024 00:31
@gallexy
Copy link

gallexy commented Apr 17, 2024

That's great!

@davorrunje
Copy link
Collaborator

Great work!

jayralencar pushed a commit to jayralencar/autogen that referenced this pull request May 28, 2024
* Start Gemini integration: works ok with Text now

* Gemini notebook lint

* try catch "import" for Gemini

* Debug: id issue for chat completion in Gemini

* Add RAG example

* Update docs for RAG

* Fix missing pydash

* Remove temp folder

* Fix test error in runs/7206014032/job/19630042864

* Fix tqdm warning

* Fix notebook output

* Gemini's vision model is supported now

* Install instructions for the Gemini branch

* Catch and retry when see Interval Server Error 500

* Allow gemini to take more flexible messages
i.e., it can take messages where "user" is not the last role.

* Use int time for Gemini client

* Handle other exceptions in gemini call

* rename to "create" function for gemini

* GeminiClient compatible with ModelClient now

* Lint

* Update instructions in Gemini notebook

* Lint

* Remove empty blocks from Gemini notebook

* Add gemini into example page

* self.create instead of call

* Add py and Py into python execution

* Remove error code from merging

* Remove pydash dependency for gemini

* Add cloud-gemini doc

* Remove temp file

* cache import update

* Add test case for summary with mm input

* Lint: warnings instead of print

* Add test cases for gemini

* Gemini test config

* Disable default model for gemini

* Typo fix in gemini workflow

* Correct grammar in example notebook

* Raise if "model" is not provided in create(...)

* Move TODOs into a roadmap

* Update .github/workflows/contrib-tests.yml

Co-authored-by: Davor Runje <davor@airt.ai>

* Gemini test config update

* Update setup.py

Co-authored-by: Davor Runje <davor@airt.ai>

* Update test/oai/test_gemini.py

Co-authored-by: Davor Runje <davor@airt.ai>

* Update test/oai/test_gemini.py

Co-authored-by: Davor Runje <davor@airt.ai>

* Remove python 3.8 from gemini
No google's generativeai for Windows with Python 3.8

* Update import error handling for gemini

* Count tokens and cost for gemini

---------

Co-authored-by: Li Jiang <bnujli@gmail.com>
Co-authored-by: Davor Runje <davor@airt.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.